//
//  eraly_bind_and_late_bind.hpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/15.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef eraly_bind_and_late_bind_hpp
#define eraly_bind_and_late_bind_hpp

#include <stdio.h>


int add2(int x, int y);


/*
 
 int main()
 {
 
 //早绑定就是直接调用
 add2(3,4);
 
 //晚绑定（或者动态绑定）
 // Create a function pointer and make it point to the Add function
 int (*pFcn)(int, int) = add2;
 std::cout << pFcn(5, 3) << std::endl; // add 5 + 3
 
 return 0;
 }
 
 */


#endif /* eraly_bind_and_late_bind_hpp */
